/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package grid;

/**
 *
 * @author Dragan
 */
public class MigratorJob extends SingleJob {

    private static final String EXECUTABLE = "migrator.sh";
    private static final String CLASS = "grid.Migrator";

    public MigratorJob(int epoch, int migrationWidth, int breeders, String vo) {
        this(epoch, migrationWidth, breeders, vo, 0, 3, null);
        addOutput("migrator" + (epoch + 1) + ".log.gz");
    }

    public MigratorJob(int epoch, int migrationWidth, int breeders, String vo, int defaultNodeRetryCount, int defaultNodeShallowRetryCount, String rank) {
        super(vo, EXECUTABLE, CLASS + " " + epoch + " " + migrationWidth + " " + breeders, defaultNodeRetryCount, defaultNodeShallowRetryCount, rank);
        addOutput("migrator" + (epoch + 1) + ".log.gz");
    }

    public static void main(String[] args) {
        MigratorJob migratorJob = new MigratorJob(1, 1, 2, "seegrid", 0, 3, "-other.GlueCEStateEstimatedResponseTime");
        migratorJob.addRequirement("(other.GlueCEUniqueID ==\"grid-ce.ii.edu.mk:2119/jobmanager-pbs-seegrid\")");
        migratorJob.addRequirement("(other.GlueCEUniqueID == \"grid-lab-ce.ii.edu.mk:2119/jobmanager-pbs-seegrid\")");

        System.out.println(migratorJob);
    }
}
